<html>
<head><title>Panic Menu</title>
<Script language="javascript" src="Msg.js"></script>
<Script language="javascript" src="ENGAGE.js"></script>

<?php 
$i = $_GET['C'];
include('Colours.php'); //Gets the colours from Colours.php

if($i == 0) //Checks if the URL ends with a 0, for switching colours
{
	$i = 1;
	$font_color = $font_color2;
}
else
{
	$i = 0;
}
?>
</HEAD>
<body bgcolor="<?php echo $bgcolor; ?>" text="<?php echo $font_color; ?>"  style="font-family: Arial; font-size:180px">
<center>
<b>
<div id="PanicText" name="PanicText">
</div>
</b>
</center>


<SCRIPT LANGUAGE="JavaScript">
	if(!Panic_Mode)
	{
		location.href="../index.html"; //Redirects if panic is disengaged
	}
	setTimeout('location.href="Panic_Display.php?C=<?php echo $i; ?>"', 500); //Refreshes page every half second, and changes the number at the end of the URL
	document.getElementById('PanicText').innerHTML = msg; 	
</SCRIPT>


</body>
</html>
